﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml.Serialization;

namespace ICalendar.CalendarProperties
{
    /// <summary>
    /// This property defines the access classification for a calendar component.
    /// </summary>
    [Serializable]
    [XmlRoot("class")]
    public class Classification : CalendarPropertyBase<ClassificationValue>
    {

        #region Overrides of CalendarPropertyBase<Classification>

        protected override void SetValue(string value)
        {
            this.Value.FromName(value);
        }

        protected override string GetValue()
        {
            return this.Value.GetName();
        }

        protected override void SetParametersFromXParameters(XParameterCollection xparams)
        {
            
        }

        protected override XParameterCollection GetXParametersFromParameters()
        {
            return null;
        }

        protected override string[] GetXReservedParametersNames()
        {
            return null;
        }

        #endregion
    }
}
